<template>
    <div class="asidemenu">
        <el-menu default-active="1" class="el-menu-vertical-demo" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b"
            :unique-opened="uniqueOpened">
            <el-submenu index="1">
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>导航一</span>
                </template>
                <el-menu-item-group>
                    <router-link to="/home/one"><el-menu-item index="1-1" >列表</el-menu-item></router-link>
                    <router-link to="/home/two"><el-menu-item index="1-2" >添加</el-menu-item></router-link>
                </el-menu-item-group> 
            </el-submenu>
        </el-menu>
    </div>
</template>
<script>
    export default {
        name :'asidemenu',
        data() {
            return {
                uniqueOpened:true,
            }
        },
        methods:{
        }
    }
</script>

<style scoped>
    .asidemenu {height:100%}
    a{text-decoration: none}
</style>